//package org.example.test;
//
//
//import org.example.htmltowxml4j.api.Params;
//import org.example.htmltowxml4j.core.HtmlToJson;
//import org.example.utils.HttpUtils;
//
//import com.alibaba.fastjson.JSONObject;
//
//import org.springframework.http.ResponseEntity;
//
//import org.jsoup.Jsoup;
//import org.jsoup.nodes.Document;
//import org.jsoup.nodes.Element;
//
//
//
//import java.util.List;
//
//
///**
// * @author Vader
// * @date 2021/11/25
// **/
//
//
//public class ReplaceWx {
//    public static void main(String[] args) throws Exception {
//        ResponseEntity<String> response = HttpUtils.sendGet("http://whosecard.com:8081/api/wx/article?url=https://mp.weixin.qq.com/s?__biz=MjM5NDgwNjgxMw==%26mid=2651787669%26idx=1%26sn=f8955e248e7810732df62fb03b8f6293%26chksm=bd799ce78a0e15f1736bc277f0458728771cd5649e380a6b72fba4cba70213cf3c74350ecbde%26scene=58%26subscene=0%23rd&key=b75df21d25053e5778a3e7a342f7479b69ed08d9ab3d149f81954737", null, "utf-8");
//        JSONObject result = JSONObject.parseObject(response.getBody());
//        result = result.getJSONObject("result");
//        String contentNoencode = result.getString("content_noencode");
//        List<String> arrayLists = result.getJSONObject("content_extracted_info").getJSONArray("images").toJavaList(String.class);
//
//        Document allDocument = Jsoup.parse(contentNoencode);
//        Element element = allDocument.selectFirst("section");
//
//        if (element == null) {
//            return;
//        }
//        String jsContentHtml = element.html();
//
//        Params params = new Params();
//        params.setType("html");
//
//        String htmljson = HtmlToJson.by(jsContentHtml, params).get();
//        for (int i = 0; i < arrayLists.size(); i++) {
//            htmljson = htmljson.replace(" ", "");
//            htmljson = htmljson.replace(arrayLists.get(i), " ");
//            System.out.println(arrayLists.get(i));
//        }
//        System.out.println(htmljson);
//    }
//
//}
